package com.ny.wlw;

public class Person {
public String name;
private  int money;

    public void setMoney(int money) {
         if(money<0){
             System.out.println("你输入的金额有问题");
         }else {
             this.money = money;
         }
    }

    public int getMoney() {
        return money;
    }
}
